package com.whfc.ms.api.fse.service.impl;

import com.whfc.common.result.ListData;
import com.whfc.fse.dto.FseLiftDataDTO;
import com.whfc.fse.dto.FseLiftDataLogDTO;
import com.whfc.fse.service.FseLiftDataService;
import com.whfc.ms.api.fse.service.MsFseLiftDataService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @DESCRIPTION
 * @AUTHOR GuoDong_Sun
 * @DATE 2020/4/10
 */
@Service
public class MsFseLiftDataServiceImpl implements MsFseLiftDataService {
    @DubboReference(interfaceClass = FseLiftDataService.class, version = "1.0.0")
    private FseLiftDataService fseLiftDataService;

    @Override
    public List<FseLiftDataDTO> latest(Integer liftId) {
        return fseLiftDataService.latest(liftId);
    }

    @Override
    public ListData<FseLiftDataLogDTO> log(Integer liftId, Date date) {
        return fseLiftDataService.log(liftId, date);
    }

}
